package com.abe.bathsystem.widget.dialog;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.Window;
import android.widget.TextView;

import net.yet.campusdev.R;

public class MessageDialog extends BaseDialog {
    private String msg;

    public MessageDialog(@NonNull Context context, String msg) {
        super(context);
        this.msg = msg;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.item_view_v3_version_check);
        ((TextView) findViewById(R.id.item_title)).setText(R.string.room_title);
        ((TextView) findViewById(R.id.item_version_msg)).setText(msg);
        findViewById(R.id.item_btn_layout).setVisibility(View.GONE);
    }
}
